/**

 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.mingsoft.cms.biz;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mingsoft.base.entity.BaseEntity;
import com.mingsoft.basic.biz.IBasicBiz;
import com.mingsoft.basic.entity.ColumnEntity;
import com.mingsoft.cms.entity.ArticleEntity;
import com.mingsoft.cms.entity.InsuranceEntity;
import com.mingsoft.cms.entity.InsurancePriceEntity;
import com.mingsoft.cms.entity.InsurancePropertyEntity;
import com.mingsoft.cms.entity.PropertyValueEntity;
import com.mingsoft.mdiy.entity.ContentModelEntity;
import com.mingsoft.util.PageUtil;

/**
 * 
 * @author MBENBEN
 *
 */
public interface IInsuranceBiz extends IBasicBiz {

	public int getCountByColumnId( int[] basicCategoryIds, String flag);
	
	/**
	 * 保存保险价格
	 * @param ipe
	 */
	public void savePrice(InsurancePriceEntity ipe);
	/**
	 * 保存保险价格属性
	 * @param insPe
	 */
	public void saveProperty(InsurancePropertyEntity insPe);
	
	List<InsuranceEntity> queryByCategory(@Param("webId") int webId, @Param("basicCategoryIds") int[] basicCategoryIds,
			@Param("flag") String flag, @Param("noFlag") String noFlag, @Param("orderBy") String orderBy,
			@Param("order") boolean order, @Param("article") InsuranceEntity article);

	/**
	 * 指更新状态
	 * @param ids
	 * @param ins
	 */
	public void updateStatus(@Param("ids") int[] ids,int status);

}